def add(x,y):
    return x+y

result = add(1,2)
print(result)
print(add)

# 使用lambda创建匿名函数
expression = lambda x,y: x+y
print(expression)
print(expression(1,2))

# 简写
result = (lambda x,y: x+y)(1,2)
print(result)
